import service from '@/utils/request';

const CombineApi = {
  listCombine: function (data) {
    return service.get('combine/page', { params: data });
  },
  addCombine: function (data) {
    return service.post('combine', data);
  },
  editCombine: function (data) {
    return service.put('combine', data);
  },
  deleteCombine: function (data) {
    return service.put('combine/delete', data);
  },
  batchUpdateSaleState: function (data) {
    return service.put('combine/batchUpdateSaleState', data);
  },
  getCombineInfo(data) {
    return service.get('combine', { params: data });
  },
  listIdName: function (data) {
    return service.get('combine/listIdName', { params: data });
  },

  // 获取该套餐没有在这批次订单的产品
  listRemainingGoods: function (data) {
    return service.get('combine/listRemainingGoods', { params: data });
  },
};

export default CombineApi;
